import {
  get,
  post,
  //postForm,
  del
} from '@/utils/http'
const packageName = `http://124.70.196.178:8080/intelligent_control_webservice_eeds`

/**
 * 能耗参数
 */
// 获取全部能耗参数
export function getEnergyConsumptionParams(params) {
  return get(`${packageName}/pc/energyConsumptionParam/getEnergyConsumptionParams`, params)
}
// 获取能耗参数列表
export function getEnergyConsumptionParamList(params) {
  return get(`${packageName}/pc/energyConsumptionParam/getEnergyConsumptionParamList`, params)
}
// 获取能耗参数详情
export function getEnergyConsumptionParam(params) {
  return get(`${packageName}/pc/energyConsumptionParam/getEnergyConsumptionParam`, params)
}
// 删除能耗参数
export function delEnergyConsumptionParam(params) {
  return del(`${packageName}/pc/energyConsumptionParam/delEnergyConsumptionParam`, params)
}
// 保存能耗参数
export function saveEnergyConsumptionParam(params) {
  return post(`${packageName}/pc/energyConsumptionParam/saveEnergyConsumptionParam`, params)
}

/**
 * 能耗设备
 */
// 获取全部能耗设备
export function getEnergyConsumptionDevices(params) {
  return get(`${packageName}/pc/energyConsumptionDevice/getEnergyConsumptionDevices`, params)
}
// 获取能耗设备列表
export function getEnergyConsumptionDeviceList(params) {
  return get(`${packageName}/pc/energyConsumptionDevice/getEnergyConsumptionDeviceList`, params)
}
// 获取能耗设备详情
export function getEnergyConsumptionDevice(params) {
  return get(`${packageName}/pc/energyConsumptionDevice/getEnergyConsumptionDevice`, params)
}
// 删除能耗设备
export function delEnergyConsumptionDevice(params) {
  return del(`${packageName}/pc/energyConsumptionDevice/delEnergyConsumptionDevice`, params)
}
// 保存能耗设备
export function saveEnergyConsumptionDevice(params) {
  return post(`${packageName}/pc/energyConsumptionDevice/saveEnergyConsumptionDevice`, params)
}

/**
 * 能耗设备参数
 */
// 获取全部能耗设备参数
export function getEnergyConsumptionDeviceParams(params) {
  return get(`${packageName}/pc/energyConsumptionDeviceParam/getEnergyConsumptionDeviceParams`, params)
}
// 获取能耗设备参数列表
export function getEnergyConsumptionDeviceParamList(params) {
  return get(`${packageName}/pc/energyConsumptionDeviceParam/getEnergyConsumptionDeviceParamList`, params)
}
// 获取能耗设备参数详情
export function getEnergyConsumptionDeviceParam(params) {
  return get(`${packageName}/pc/energyConsumptionDeviceParam/getEnergyConsumptionDeviceParam`, params)
}
// 删除能耗设备参数
export function delEnergyConsumptionDeviceParam(params) {
  return del(`${packageName}/pc/energyConsumptionDeviceParam/delEnergyConsumptionDeviceParam`, params)
}
// 保存能耗设备参数
export function saveEnergyConsumptionDeviceParam(params) {
  return post(`${packageName}/pc/energyConsumptionDeviceParam/saveEnergyConsumptionDeviceParam`, params)
}
